<include file="public@header" />
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('index')}">列表</a></li>
        <li class="active"><a href="{:url('add')}">添加</a></li>
    </ul>
    <form action="{:url('add')}" method="post" class="form-horizontal js-ajax-form margin-top-20">
        <div class="row">
            <div class="col-md-9">
                <table class="table table-bordered">
                    <tr>
                        <th width="20%">账号<span class="form-required">&nbsp;*&nbsp;</span></th>
                        <td>
                            <select class="form-control valid" name="user_id" id="user_id" aria-invalid="false"
                                    required>
                                <option value="">-请选择-</option>
                                <volist name="detail['getUserListInfo']" id="vo">
                                    <option value="{$vo.id}">{$vo.user_nickname}</option>
                                </volist>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <th width="20%">名称<span class="form-required">&nbsp;*&nbsp;</span></th>
                        <td>
                            <input class="form-control" type="text" name="supplier_title" id="supplier_title" required
                                   value="" placeholder="请填写名称"/>
                        </td>
                    </tr>
                    <tr>
                        <th width="20%">手机号<span class="form-required">&nbsp;*&nbsp;</span></th>
                        <td>
                            <input class="form-control" type="number" name="supplier_tel" id="supplier_tel" required
                                   value="" placeholder="请填写手机号"/>
                        </td>
                    </tr>
                    <tr>
                        <th width="20%">简介<span class="form-required"></span></th>
                        <td>
                            <textarea class="form-control" name="supplier_desc" id="supplier_desc"
                                      placeholder="请填写简介" style="width:100%;height:200px;resize:none;"></textarea>
                        </td>
                    </tr>
                </table>
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('ADD')}</button>
                        <a class="btn btn-default" href="{:url('index')}">{:lang('BACK')}</a>
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>